package zucc.edu.cn.chengchengparttime.LoginAndReg;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.widget.ImageView;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatButton;

import zucc.edu.cn.chengchengparttime.R;

public class RegisterActivity extends AppCompatActivity {
    private Context context;

    private AppCompatButton btn_register;
    private ImageView goback;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_register);
        context=this.getBaseContext();

        btn_register=(AppCompatButton) findViewById(R.id.btn_register);
        btn_register.setOnClickListener(view -> {
            Toast.makeText(this, "点击了注册" , Toast.LENGTH_SHORT).show();
            //跳转到手机号登录界面
            Intent intent=new Intent(RegisterActivity.this, LoginActivity.class);
            startActivity(intent);
        });

        goback=findViewById(R.id.goback);
        goback.setOnClickListener(view -> {
            Toast.makeText(this.context, "点击了返回" , Toast.LENGTH_SHORT).show();
            //跳转登录界面
            Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);
            startActivity(intent);
        });
    }
}
